<html>
<head><title>ws test</title></head>
<body>
<p1>ws test</p1>
</body>
<script type="text/javascript">
    var ws = new WebSocket("ws://localhost:9654/ws/channel");
    ws.onopen = function (evt) {
        ws.send("Hello World");
    };
    ws.onmessage = function (evt) {
        alert("Received Message: " + evt.data);
    }
    ws.onclose = function (evt) {
        alert("Connection closed.");
    }
</script>
</html>
